<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ page session="false" %>

<div class="panel category-panel">
	<h4 class="panel-title">Categories</h4>
	<ul>
		<c:forEach items="${categoryList}" var="cat">
			<li>
        <a href="<c:url value="/blogs/category/${cat.id}"/>">${cat.name}<span>${fn:length(cat.blogKeys)}</span></a>
			</li>
		</c:forEach>
	</ul>
</div>

<div class="panel text-cloud-panel">
	<h4 class="panel-title">Tag Cloud</h4>
	<div class="text-cloud">
		<c:forEach items="${tagList}" var="cTag">
			<a href="${ cTag.link }" title="<fmt:formatNumber type="number" maxFractionDigits="0" value="${cTag.score}"/> article(s)" style="font-size: ${cTag.weight}px;">${cTag.name}</a>
		</c:forEach>
	</div>
</div>

